{extend name="user/index" /}

{block name="main"}
<div class="row mt50">
    <div class="col-md-6 col-md-offset-3">
        <ul class="list-group h2">
            <li class="list-group-item">ID: {$row['id']}</li>
            <li class="list-group-item">NAME: {$row['name']}</li>
            <li class="list-group-item">TEL: {$row['tel']}</li>
            <li class="list-group-item">
                SEX:
                {switch name="row['sex']"}
                    {case value="0"}女{/case}
                    {case value="1"}男{/case}
                    {default /} 未知
                {/switch}

            </li>
        </ul>
    </div>
</div>

{/block}

{block name="sub"}{/block}

{block name="myjs"}
<script>
    console.log($);
</script>
{/block}
